package design_pattern.Singleton;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/23 14:18
 * @Version 1.0
 * 单例模式
 */
public class SingletonObject1 {
    private static final SingletonObject1 instance = new SingletonObject1();
    private SingletonObject1(){

    }
    public static SingletonObject1 getInstance(){
        return instance;
    }
}
